package com.example.im.utils;

import android.content.Context;

import com.alibaba.android.arouter.launcher.ARouter;

public class RouterUtils {

    public static final String IM_CHAT = "/im/chat";

    /**
     *
     * @param uid 对方 uid
     */
    public static void jumpIMChat(String uid,String name) {
        ARouter.getInstance().build(RouterUtils.IM_CHAT)
                .withString("uid",uid)
                .withString("name",name)
                .navigation();
    }

    public static void jumpImMain(Context context) {
        ARouter.getInstance().build("/im/main").navigation();
    }
}
